/*
 * AddToShoppingCartResponse.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.bean.Shop;
import com.yidiandao.business.data.net.BaseResponse;

/** 添加到购物车 */
public class AddToShoppingCartResponse extends BaseResponse {

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("rec_id")
        private String recId;

        @SerializedName("goods_number")
        private int goodsNumber;

        @SerializedName("goods_price")
        private float goodsPrice;

        @SerializedName("cart_info")
        private CartInfo cartInfo;

        public CartInfo getCartInfo() {
            return cartInfo;
        }

        public void setCartInfo(CartInfo cartInfo) {
            this.cartInfo = cartInfo;
        }

        public float getGoodsPrice() {
            return goodsPrice;
        }

        public void setGoodsPrice(float goodsPrice) {
            this.goodsPrice = goodsPrice;
        }

        public String getRecId() {
            return recId;
        }

        public void setRecId(String recId) {
            this.recId = recId;
        }

        public int getGoodsNumber() {
            return goodsNumber;
        }

        public void setGoodsNumber(int goodsNumber) {
            this.goodsNumber = goodsNumber;
        }
    }

    public static class CartInfo {

        @SerializedName("supplier")
        private Shop shop;

        @SerializedName("goods")
        private Goods goods;

        public Shop getShop() {
            return shop;
        }

        public void setShop(Shop shop) {
            this.shop = shop;
        }

        public Goods getGoods() {
            return goods;
        }

        public void setGoods(Goods goods) {
            this.goods = goods;
        }
    }
}
